import { BroadCastCall } from "../../broadCast/BroadCastCall";
import { MessageBlock } from "../../../../../Framework/MQ/MessageBlock";
import { SGuildWarEnter } from "../../../../../Message/Public/SGuildWarEnter";
import { Cache } from "../../../cache/Cache";
import { NetDispatcher } from "../../../../mvc/core/NetDispatcher";
import { ServerCommand } from "../../../mvc/ServerCommand";
//class GuildWarEnterCommand
    
    export  class GuildWarEnterCommand extends BroadCastCall
    {
        constructor(arg1: Object)
        {
            super(arg1);
            return;
        }

        public /* override */ call(arg1: MessageBlock): void
        {
            super.call(arg1);
            var loc1=arg1.messageBase as SGuildWarEnter;
            Cache.instance.guildWar.guildwarEnter = loc1;
            NetDispatcher.dispatchCmd(ServerCommand.GuildwarEnter, loc1);
            return;
        }
    }
